
import java.awt.Dimension;
import java.awt.image.BufferedImage;

public abstract class Item {

    BufferedImage img;
    public int x;
    public int y;
    int maxSize;

    Item() {
        img = null;
    }

    Item(BufferedImage image, int xVal, int yVal, int maxSize) {
        img = image;
        this.x = xVal;
        this.y = yVal;
        this.maxSize = maxSize;
    }

    boolean setX(int xVal) {
        try {
            this.x = xVal;
        } catch (Exception e) {
            System.out.println(e);
            return false;
        }
        return true;
    }

    boolean setY(int yVal) {
        try {
            this.y = yVal;
        } catch (Exception e) {
            System.out.println(e);
            return false;
        }
        return true;
    }

    abstract boolean getHealing();

    abstract boolean getDamage();

    abstract boolean getArmour();

    abstract int getType();
}
